package com.yowasa.xiuxian.annoations;

import com.yowasa.xiuxian.entity.enums.ItemTypeEnum;
import org.springframework.stereotype.Component;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
@Component
public @interface Item {

    String name();

    ItemTypeEnum type();

    int price();
}
